package com.alibaba.dubbo.governance.service;

import java.util.List;

import com.alibaba.dubbo.registry.common.domain.User;

/**
 * 用户服务
 * @author lry
 */
public interface UserService {

    List<User> findAllUsers();
    
    User findUser(String username);
    
    User findById(Long id);

    void createUser(User user);
    
    void updateUser(User user);
    
    void modifyUser(User user);
    
    boolean updatePassword(User user, String oldPassword);
    
    void resetPassword(User user);

    void enableUser(User user);
    
    void disableUser(User user);

    void deleteUser(User user);

}
